package cn.sherer.beans.douyin;

import java.util.List;
import java.util.ArrayList;
import java.io.Serializable;

/**
 * 抖音退款结果
 */
public class DyRefundResult implements Serializable {
    private String order_id;
    private String refund_id;
    private String out_refund_no;
    private long refund_total_amount;
    private String refund_status;
    private long create_at;
    private long refund_at;
    private String message;
    private List<DyOrderItemDetail> item_order_detail;
    private DyRefundMerchantAuditDetail merchant_audit_detail;
    private long refund_source;

    /** 退款状态：已退款 */
    public static final String REFUND_STATUS_SUCCESS = "SUCCESS";
    /** 退款状态：退款失败 */
    public static final String REFUND_STATUS_FAIL = "FAIL";
    /** 退款状态：退款中 */
    public static final String REFUND_STATUS_PROCESSING = "PROCESSING";

    /** 退款来源：用户发起退款 */
    public static final long REFUND_SOURCE_BY_USER = 1;
    /** 退款来源：开放者发起退款 */
    public static final long REFUND_SOURCE_BY_DEVELOPER = 2;
    /** 退款来源：过期自动退款 */
    public static final long REFUND_SOURCE_BY_OVERTIME = 3;
    /** 退款来源：抖音客服退款 */
    public static final long REFUND_SOURCE_BY_SERVICE = 4;
    /** 退款来源：预约失败自动发起退款 */
    public static final long REFUND_SOURCE_BY_APPOINTMENT = 5;
    /** 退款来源：开发者拒绝接单退款 */
    public static final long REFUND_SOURCE_BY_REFUSE = 6;
    /** 退款来源：后约单触发先买单退款 */
    public static final long REFUND_SOURCE_BY_AFTER = 7;

    public DyRefundResult() {
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getRefund_id() {
        return refund_id;
    }

    public void setRefund_id(String refund_id) {
        this.refund_id = refund_id;
    }

    public String getOut_refund_no() {
        return out_refund_no;
    }

    public void setOut_refund_no(String out_refund_no) {
        this.out_refund_no = out_refund_no;
    }

    public long getRefund_total_amount() {
        return refund_total_amount;
    }

    public void setRefund_total_amount(long refund_total_amount) {
        this.refund_total_amount = refund_total_amount;
    }

    public String getRefund_status() {
        return refund_status;
    }

    public void setRefund_status(String refund_status) {
        this.refund_status = refund_status;
    }

    public long getCreate_at() {
        return create_at;
    }

    public void setCreate_at(long create_at) {
        this.create_at = create_at;
    }

    public long getRefund_at() {
        return refund_at;
    }

    public void setRefund_at(long refund_at) {
        this.refund_at = refund_at;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DyOrderItemDetail> getItem_order_detail() {
        return item_order_detail == null ? new ArrayList<>() : item_order_detail;
    }

    public void setItem_order_detail(List<DyOrderItemDetail> item_order_detail) {
        this.item_order_detail = item_order_detail;
    }

    public DyRefundMerchantAuditDetail getMerchant_audit_detail() {
        return merchant_audit_detail == null ? new DyRefundMerchantAuditDetail() : merchant_audit_detail;
    }

    public void setMerchant_audit_detail(DyRefundMerchantAuditDetail merchant_audit_detail) {
        this.merchant_audit_detail = merchant_audit_detail;
    }

    public long getRefund_source() {
        return refund_source;
    }

    public void setRefund_source(long refund_source) {
        this.refund_source = refund_source;
    }

    @Override
    public String toString() {
        return "DyRefundResult{order_id=" + order_id + ", refund_id=" + refund_id + ", out_refund_no=" + out_refund_no + ", refund_total_amount=" + refund_total_amount + ", refund_status=" + refund_status + ", create_at=" + create_at + ", refund_at=" + refund_at + ", message=" + message + ", item_order_detail=" + item_order_detail + ", merchant_audit_detail=" + merchant_audit_detail + ", refund_source=" + refund_source + "}";
    }
}
